<div class="register">
  <form class="ta-c" name="form">
    <div class="form-inline ta-l">
      <span class="icon account d-ib"></span>
      <input validator="required,phone" ng-model="user.phone" type="text" name="phone" placeholder="输入手机号">
    </div>
    <div class="form-inline ta-l">
      <span class="icon lock d-ib"></span>
      <input validator="required,password" ng-model="user.password" type="password" name="password" placeholder="设置6位以上的密码">
    </div>
    <div class="message-wrap">
      <input validator="required" ng-model="user.code" type="text" name="code" placeholder="短信验证码" class="message-box">
      <span class="message ta-c {{time?'disabled':''}}" ng-click="time?1==1:send();" ng-bind="time?time:'发送短信'"></span>
    </div>
    <button class="login-btn" ui-sref="login">登录</button>
    <button class="register-btn" validation-submit="form" ng-click="submit();">注册</button>
  </form>
</div>
